﻿
CREATE Proc [dbo].[News_Add]
			@OId bigint =null,
			@EntryId nvarchar(max)
           ,@Title nvarchar(max)
           ,@Updated datetime
           ,@Link nvarchar(255)
           ,@ContentSummery text
           ,@Source nvarchar(255)
as

if not exists(select * from News where @EntryId=EntryId)
begin
INSERT INTO [News]
           ([EntryId]
           ,[Title]
           ,[Updated]
           ,[NewsDate] 
           ,[NewsTime] 
           ,[Link]
           ,[ContentSummery] 
           ,[Source])
     VALUES
           (@EntryId
           ,@Title
           ,@Updated
           ,@Updated
           ,@Updated
           ,@Link
           ,@ContentSummery
           ,@Source)
end 
